<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    登录人： <span id="loginUser" ></span>
    <script src="jquery"></script>
    <script>
        $.ajax({
            type:"post",
            url:"/userNew/loginUser",
            success : function(userName){
                $("#loginUser").text(userName);
            }
        })
    </script>
</body>
</html>